// 自动生成模板SysPatients
package system

import (
	"github.com/flipped-aurora/gin-vue-admin/server/global"
)

// 患者 结构体  SysPatients
type SysPatients struct {
	global.GVA_MODEL
	PatientName  *string `json:"patientName" form:"patientName" gorm:"comment:患者姓名;column:patient_name;" binding:"required"`      //姓名
	Gender       *int    `json:"gender" form:"gender" gorm:"comment:性别，1:男，2:女;column:gender;" binding:"required"`                //性别
	Age          *int    `json:"age" form:"age" gorm:"comment:年龄;column:age;" binding:"required"`                                 //年龄
	Phone        *string `json:"phone" form:"phone" gorm:"comment:联系电话;column:phone;"`                                            //电话
	Address      *string `json:"address" form:"address" gorm:"comment:联系地址;column:address;"`                                      //地址
	IdCardNumber *string `json:"idCardNumber" form:"idCardNumber" gorm:"comment:身份证号码;column:id_card_number;" binding:"required"` //身份证
	StoreId      int     `json:"store_id" form:"store_id" gorm:"comment:门店ID;column:store_id;"`                                   //门店ID
	StoreName    string  `json:"store_name" form:"store_name" gorm:"comment:门店名称;column:store_name;"`                             //门店名称
}

// TableName 患者 SysPatients自定义表名 sys_patients
func (SysPatients) TableName() string {
	return "sys_patients"
}
